home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
HPAVC
/
HPAVC CD-ROM.iso
/
FNTPAK32.ZIP
/
BASIC.EXE
/
FONT_PAK.INC
< prev
next >
Wrap
Text File
|
1995-08-16
|
5KB
|
150 lines
'========================================================== Font_Pak.Inc
'
' INCLUDE FILE declaring Font Pak SUBs and FUNCTIONs.
'
' IMPORTANT: Except for two cases, pass ALL parameters by VALUE.
'
' One exception is rsButtonPressed. Pass Row and Column by
' reference so we can update them and return them to you.
'
' Exception #2 is function LoadFontFile in Ondisk.BAS.
' Syntax: ErrorCode = LoadFontFile (FontFile$, Block%)
'
' NOTE: Below we declare each Font Pak routine. We also describe
' which OBJ file contains that routine.
'
' * These OBJ files are sent to REGISTERED users.
'
' * SHAREWARE users receive Font_Pak.Obj (PowerBASIC: FontPakP.Obj)
' which includes trial versions of ALL routines mentioned below.
'
'========================================================== Font_Pak.Inc
DEFINT A-Z '======== ALL numeric parameters must be integers.
'================================= for SHAREWARE versions only
DECLARE SUB fpInitialize () '...display shareware reminder
'================================= Sample declarations for CALLable fonts
' Edit these to declare callable OBJ fonts YOU create using Font2Asm.
DECLARE SUB Hollow9 (BYVAL Block%) '...NOTE BYVAL !!!
DECLARE SUB Script1 (BYVAL Block%) '...NOTE BYVAL !!!
DECLARE SUB Frazzle (BYVAL Block%) '...NOTE BYVAL !!!
'================================= Video-related SUBs (Video.Obj)
' determine type of monitor in use. returns : : :
' 0 = None (no monitor) 1 = Monochrome
' 3 = Color (CGA) 4 = EGA (or MultiSync)
' 7 = VGA Monochrome 8 = VGA Color (or MultiSync)
DECLARE FUNCTION GetMonitor% ()
' select brite backgrounds or blinking
DECLARE SUB BrightBG (BYVAL OnOff%)
' switch color palettes to achieve bright backgrounds, preserve blinking colors
DECLARE SUB DefaultPalette (BYVAL Which%)
' select dark blue background, preserve blinking -- a subset of DefaultPalette
DECLARE SUB DarkBlue ()
' set the maximum # of lines on the screen -- based on the size
' of the font you're loading.
DECLARE Function SETMAXLINES(Byval FontHeight%)
' If you change # of lines beyond the normal 25, 43 or 50, your compiler
' may protest if you try to print or "locate" beyond 25/43/50. The next 2
' routines can help overcome these limitations.
DECLARE SUB WRITECHAR (Byval Row%, Byval Col%, Byval AscCode%, Byval Colr%)
DECLARE SUB SETCURSORPOS (Byval Row%, Byval Col%)
'================================= Text-mode Font-related SUBs (Fonts.Obj)
' select 1 or 2 blocks to turn on font(s) you loaded into these blocks
DECLARE SUB rsWhichFonts (BYVAL LoIntensity%, BYVAL HiIntensity%)
' pre-load font blocks, or restore default font
DECLARE SUB rsLoadDefault (BYVAL WhichSize&, BYVAL Block%)
' called by ONDISK... routines, help load font from disk, or a transformed one
DECLARE SUB rsLoadFont (BYVAL bufSeg%, BYVAL bufAddr%, BYVAL Block%, BYVAL NumChars%, BYVAL FontHeight%, BYVAL FirstChar%)
'================================= To load fonts from disk (Ondisk_?.Bas)
DECLARE FUNCTION LoadFontFile (FontFile$, Block)
'================================= Mouse-related SUBs (Mouse.Obj)
' initialze the mouse, see if there is one
DECLARE FUNCTION rsThereIsAMouse% ()
' hide or display mouse cursor
DECLARE SUB rsHidecursor ()
DECLARE SUB rsShowcursor ()
' rsButtonPressed returns which mouse button was pressed, and if so, where.
'
' - NOTE: Row and Column MUST be passed by reference so we can return them.
'
' - GFXorText: Pass 0 to get text mode Row/Col,
' or -1 to get graphics mode pixel coordinates
'
' - returns which button was pressed: 0 (none) 1 (left) 2(right)
' 3 (both) 4 (middle)
DECLARE FUNCTION rsButtonPressed (MouseRow, MouseCol, BYVAL GFXorText%)
'================================== Text-mode Symbols (LdSymbol.Obj)
' To select the 1- or 2-byte symbols or icons. Also see
' rsLoadMouseCursor which contains other 1-byte shapes which
' may be used as symbols/icons.
DECLARE SUB rsLoadSymbol (BYVAL Block%, BYVAL WhichShape%, BYVAL ASCIICode%)
DECLARE FUNCTION Num16Symbols% ()
'================================== TEXT-mode mouse shapes (LdMouse.Obj)
' To select the ASCII char to be used as mouse cursor shape.
' Also select the colors of mouse cursor.
DECLARE SUB rsSetTextCursor (BYVAL ForeGround%, BYVAL BackGround%, BYVAL AsciiChar%)
DECLARE SUB rsSetTextCursorC (BYVAL AsciiChar%)
' To select a mouse cursor shape from our library of shapes: 8x16 or 8x8
DECLARE SUB rsLoadMouseCursor (BYVAL Block%, BYVAL WhichShape%, BYVAL ASCIICode%)
DECLARE SUB rsLoadMouse8 (BYVAL Block%, BYVAL WhichShape%, BYVAL ASCIICode%)
' determine how many 16- and 8-point mouse shapes are in our library
DECLARE FUNCTION Num16Shapes% ()
DECLARE FUNCTION Num8Shapes% ()
'================================== GRAPHICS-mode mouse shapes (LdGFXCur.Obj)
DECLARE SUB rsLoadGFXCursor (BYVAL Which%, BYVAL XHotSpot%, BYVAL YHotSpot%)
DECLARE FUNCTION NumGFXShapes% ()
'============================== Graphics-mode Font-related SUBs (GFXFont.Obj)
' in EGA/VGA graphics modes ONLY, select the 8-, 14- or 16-point font,
' or restore the default font
DECLARE SUB GFXFont08 ()
DECLARE SUB GFXFont14 ()
DECLARE SUB GFXFont16 ()